﻿@{
	Layout = null;
}

<!DOCTYPE html>

<html>
<head>
	<meta name="viewport" content="width=device-width" />
	<title>Demo03</title>
	<style type="text/css">
		div, table, tr, td {
			margin: 0px;
			padding: 0px;
		}

		.myTable {
			Width: 800px;
			margin: 20px auto;
			border-collapse: collapse;
		}

			.myTable td {
				height: 30px;
				line-height: 30px;
				padding: 6px;
			}
	</style>
</head>
<body>
	<form method="post" action="~/Chp07/Demo03Save" enctype="multipart/form-data">
		<div style="text-align:center;">
			<table width="800" class="myTable" border="1">
				<tr>
					<td colspan="2" align="center" style="font-weight:bold;">图片上传</td>
				</tr>
				<tr>
					<td width="200" align="right">请选择图片：</td>
					<td width="600" align="left"><input type="file" name="fileImg" /></td>
				</tr>
				<tr>
					<td width="200" align="right"></td>
					<td width="600" align="left">
						<input type="submit" value="上传">
						<a href="~/uploads/@TempData["FileName"]" target="_blank">@TempData["FileName"]</a>
					</td>
				</tr>
			</table>
		</div>
	</form>
</body>
</html>
